<%@ page language="java" import="java.util.*"  pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
	<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> 
	<META HTTP-EQUIV="Expires" CONTENT="0"> 
	<title>延边州住房公积金个人网上营业厅</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta http-equiv="Access-Control-Allow-Origin" content="*">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="icon" href="favicon.ico">
	<link rel="stylesheet" href="layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="../../css/font_eolqem241z66flxr.css" media="all" />
	<link rel="stylesheet" href="css/main.css" media="all" />
	<style type="text/css">
		.dbs {
			  color: #FFFFFF;
			  float: right;
			  height: 45px;
			  line-height: 45px;
			  overflow: hidden;
			  text-align: center;
			  vertical-align: middle;
			  margin-left:20px;
			}
	</style>
<script type="text/javascript" src="js/log.js"></script></head>
<body class="main_body" onload="changeColor()">
	<div class="layui-layout layui-layout-admin">
		<!-- 顶部 -->
		<div class="layui-header header">
			<div class="layui-main">
				<a href="#" class="logo" pc>延边州住房公积金个人网上营业厅</a>
				
			    
			    <!-- 顶部右侧菜单 -->
			    <ul class="layui-nav top_menu">
			    	<li class="layui-nav-item" pc>
						<a href="javascript:;" data-url="page/gjj/dbgz.html"><i class="layui-icon" data-icon="&#xe645;"></i><cite id="blink">待办事项</cite><span id="dbs" class="layui-badge" style="background: rgb(255, 87, 34);padding-left:3px;padding-right:3px;"></span></a>
					</li>
					
					<li class="layui-nav-item" pc>
						<a href="javascript:;">
							
							<c:if test="${sessionInfo.getXINGBIE()=='女'}"><img src="images/woman.png" class="layui-circle" width="35" height="35"></c:if>
							<c:if test="${sessionInfo.getXINGBIE()=='男'}"><img src="images/man.png" class="layui-circle" width="35" height="35"></c:if>
							<cite>${sessionInfo.getXINGMING()}</cite> 
						</a>
						<dl class="layui-nav-child">
							<dd><a href="javascript:;" data-url="page/user/userInfo.html"><i class="layui-icon" data-icon="&#xe62a;">&#xe62a;</i><cite>个人资料</cite></a></dd>
							<dd><a href="javascript:;" data-url="grwsyyt/gr/grsz/xgmm.html"><i class="layui-icon" data-icon="&#xe631;">&#xe631;</i><cite>修改密码</cite></a></dd>
							<dd><a href="javascript:;"  id="tclogin"><i class="layui-icon">&#xe64f;</i><cite>退出营业厅</cite></a></dd>
						</dl>
					</li>
				</ul>
			</div>
		</div>
		<!-- 左侧导航 -->
		<div class="layui-side layui-bg-black">
			<div class="user-photo">
				<input id="lb" type="hidden" value="${sessionInfo.getLB()}">
				<c:if test="${sessionInfo.getXINGBIE()=='女'}"><a class="img" title="${sessionInfo.getXINGMING()}" ><img src="images/woman.png"></a></c:if>
				<c:if test="${sessionInfo.getXINGBIE()=='男'}"><a class="img" title="${sessionInfo.getXINGMING()}" ><img src="images/man.png"></a></c:if>
				<p>你好！<span class="userName">${sessionInfo.getXINGMING()}</span>, 欢迎登录</p>
			</div>
			<div class="navBar layui-side-scroll"></div>
		</div>
		<!-- 右侧内容 -->
		<div class="layui-body layui-form">
			<div class="layui-tab marg0" lay-filter="bodyTab">
				<ul class="layui-tab-title top_tab">
					<li class="layui-this" lay-id=""><i class="layui-icon">&#xe68e;</i> <cite>营业厅首页</cite></li>
				</ul>
				<div class="layui-tab-content clildFrame">
					<div class="layui-tab-item layui-show">
						<iframe src="page/main.html"></iframe>
					</div>
				</div>
			</div>
		</div>
		<!-- 底部 -->
		<div class="layui-footer footer">
			<p>长春市海正申科技有限责任公司</p>
		</div>
	</div>


	<!-- 移动导航 -->
	<div class="site-tree-mobile layui-hide"><i class="layui-icon">&#xe602;</i></div>
	<div class="site-mobile-shade"></div>
	<script type="text/javascript" src="layui/layui.js"></script>
	<script type="text/javascript" src="js/nav.js"></script>
	<script type="text/javascript" src="js/leftNav.js"></script>
	<script type="text/javascript" src="js/index.js"></script>
	<script type="text/javascript" src="layui/layui/jquery-3.2.1.min.js"></script>
	
	<script type="text/javascript">
	$("#tclogin").click(function(){
		window.location.href='/';
	});
	  function getPath(){
		   return 'http://'+location.host;	
	      };
	$(function(){
		var lb=$("#lb").val();
		if(lb=="1"){
			
		}else{
			window.location.href =getPath()+'/wsyyt/login/login.html';
		}
	});
	function changeColor(){ 
		$.ajax({
				url : getPath()+'/wsyyt/dbgzcontroller/test',
				method : 'post',
				dataType : 'JSON',
				success : function(result) {
					var data = result.data;
						$("#dbs").replaceWith( $("#dbs").html(data.body.RETDATA.length));
						if(result.msg==null){
							layer.msg("登陆失效请重新登陆");
										setTimeout(function () {
											window.top.location.href=result.data;
										}, 1500);
										return;
							
						}
					},
			  });
		var cont=document.getElementById("dbs");
		if(cont.innerHTML!=''&& cont.innerHTML!='0'){
			var color="#f00|#0f0"; 
			color=color.split("|"); 
			document.getElementById("blink").style.color=color[parseInt(Math.random() * color.length)]; 
		}else{
			cont.innerHTML='0';
		}
	}
		setInterval("changeColor()",100000); 
	</script>
	<script type="text/javascript" src="../js/log.js"></script>
</body>
</html>